package com.google.guava.eventbus;

import com.google.common.eventbus.EventBus;
import com.google.guava.eventbus.listeners.DeadEventListener;

/**
 * @author fuc
 * @create 2020-10-06
 */
public class DeadEventBusExample {

  public static void main(String[] args) {
    final EventBus eventBus =
        new EventBus("DeadEventBus") {
          @Override
          public String toString() {
            return "DEAD-EVENT_BUS";
          }
        };
    eventBus.register(new DeadEventListener());
    eventBus.post("Hello");
  }
}
